-- GENERATED SPELL FOR [Commander Dardosh] --


function spell0_31091(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31091', 648, 1)
end

function Sorts_31091(pUnit, Event)
local choix_sorts_31091 = math.random(0, 0)
if choix_sorts_31091 == 0 then
pUnit:RegisterEvent('spell0_31091', 1, 1)
end
end

function mob31091_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31091', math.random(1500, 3000), 1)
end

function mob31091_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31091_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31091_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31091, 1, 'mob31091_Action')
RegisterUnitEvent(31091, 2, 'mob31091_Leave')
RegisterUnitEvent(31091, 3, 'mob31091_Kill')
RegisterUnitEvent(31091, 4, 'mob31091_Die')
